//
// Created by 莫吉米 on 16/8/10.
//

#include <string>
#include <sstream>
using namespace  std;
#include "Date.h"

Date::Date():year(1900),month(1),day(1),hour(12),minute(0),second(0)
{

}
string Date::getTimeStr()
{
    char temp[30];
    sprintf(temp,"%d-%02d-%02d %02d:%02d:%02d",year,month,day,hour,minute,second);
    return string(temp);
}

